package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**账户交易
 * Created by Ellis.Li on 2017/5/12.
 */
public class TransactionInfo extends BaseModel<TransactionInfo> {

    /** 会员账户交易ID*/
    public String member_amount_transaction_id;
    /** 金额*/
    public String amount;
    /** 金额格式化*/
    public String amount_format;
    /** 交易名称(tb_member_amount_status.name*/
    public String member_amount_transaction_name;
    public String member_amount_transaction_date;
    public String member_amount_transaction_date_format;

    @Override
    public TransactionInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            member_amount_transaction_id = jsonObject.optString("member_amount_transaction_id");
            amount = jsonObject.optString("amount");
            amount_format = jsonObject.optString("amount_format");
            member_amount_transaction_name = jsonObject.optString("member_amount_transaction_name");
            member_amount_transaction_date = jsonObject.optString("member_amount_transaction_date");
            member_amount_transaction_date_format = jsonObject.optString("member_amount_transaction_date_format");
            return this;
        }
        return null;
    }
}
